<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateCompanyJobTemplate extends Migration{
    /**
     * 岗位模板分类表
     * Run the migrations.
     *
     * @return void
     */
    public function up(){
        Schema::create('company_job_template', function(Blueprint $table){
            $table->engine = 'MyISAM';
            $table->increments('id')->unsigned()->comment('自动增长主键');;
            $table->string('job_name', 255)->default('')->comment('岗位名称');
            $table->mediumInteger('jobsort1')->unsigned()->default(0)->comment('工作岗位1');
            $table->mediumInteger('jobsort2')->unsigned()->default(0)->comment('工作岗位2');
            $table->mediumInteger('jobsort3')->unsigned()->default(0)->comment('工作岗位3');
            $table->mediumInteger('jobsort4')->unsigned()->default(0)->comment('工作岗位4');
            $table->mediumInteger('jobsort5')->unsigned()->default(0)->comment('工作岗位5');
            $table->text('description')->default('')->comment('岗位模板描述');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down(){
        Schema::drop('company_job_template');
    }
}
